home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue53 / DataMod / BusinessLogic / BusinessLogicU1.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1999-11-27  |  1.1 KB  |  60 lines

  1. unit BusinessLogicU1;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   Menus;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     MainMenu1: TMainMenu;
  12.     File1: TMenuItem;
  13.     Ordinary1: TMenuItem;
  14.     ContextSpecific1: TMenuItem;
  15.     ContextSpecific2: TMenuItem;
  16.     procedure Ordinary1Click(Sender: TObject);
  17.     procedure ContextSpecific1Click(Sender: TObject);
  18.     procedure ContextSpecific2Click(Sender: TObject);
  19.   private
  20.     { Private declarations }
  21.   public
  22.     { Public declarations }
  23.   end;
  24.  
  25. var
  26.   Form1: TForm1;
  27.  
  28. implementation
  29.  
  30. {$R *.DFM}
  31.  
  32. uses
  33.   BusinessLogicU2, BusinessLogicU3, BusinessLogicU4;
  34.  
  35. procedure TForm1.Ordinary1Click(Sender: TObject);
  36. var
  37.   Form2: TForm2;
  38. begin
  39.   Form2:=TForm2.Create(Application);
  40.   Form2.Show;
  41. end;
  42.  
  43. procedure TForm1.ContextSpecific1Click(Sender: TObject);
  44. var
  45.   Form3: TForm3;
  46. begin
  47.   Form3:=TForm3.Create(Application);
  48.   Form3.Show;
  49. end;
  50.  
  51. procedure TForm1.ContextSpecific2Click(Sender: TObject);
  52. var
  53.   Form4: TForm4;
  54. begin
  55.   Form4:=TForm4.Create(Application);
  56.   Form4.Show;
  57. end;
  58.  
  59. end.
  60.